import "uno.css";
import "element-plus/theme-chalk/src/index.scss";
import "./styles/element-plus-theme/index.scss";
import "./styles/dark.scss";
import "./styles/index.scss";

import { createApp } from "vue";
import "./style.css";
import App from "./App.vue";
import ElementUI from "element-plus/es";
import zhCn from "element-plus/es/locale/lang/zh-cn";
import { setupStore } from "@/store";
import { setupRouter } from "@/router";

async function bootstrap() {
  const app = createApp(App);
  app.use(ElementUI, {
    locale: zhCn,
  });
  setupStore(app);
  await setupRouter(app);
  app.mount("#app");
}

bootstrap().then(() => {
  console.log("欢迎使用People-X");
});
